<template>
    <div>
        <p @click="count++">count:{{ count }}</p>
        <p>计算属性:doubleCount:{{ doubleCount }}</p>
    </div>
</template>

<script>
// 计算属性的案例

export default {
    data() {
        return {
            count: 100
        }
    },
    computed: {
        doubleCount() {
            //return this.count * 2
        }
    }
}
</script>
<style scoped></style>